export default {
	methods: {
		isNotNull(ele) {
			if (typeof ele === 'undefined') { //先判断类型
				return false;
			} else if (ele == null) {
				return false;
			} else if (ele == '') {
				return false;
			}
			return true;
		},
		vaild(form,info) {
			for(let key in form){
			  if (!this.isNotNull(form[key])) {
			  	uni.showToast({
			  		title: info[key],
			  		icon: 'none',
			  		duration: 2000
			  	});
			  	return false;
			  }
			}
			return true;
		},
	}
}
